<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndyMosaic.Site.ViewData.Blog.Details>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        <p>
            Title:
            <%= Html.Encode(Model.BlogEntry.Title) %>
        </p>
        <p>
            AuthorName:
            <%= Html.Encode(Model.BlogEntry.AuthorName)%>
        </p>
        <p>
            DatePublished:
            <%= Html.Encode(String.Format("{0:g}", Model.BlogEntry.DatePublished))%>
        </p>
        <p>
            Content:
            <%= Html.Encode(Model.BlogEntry.Content)%>
        </p>
    </fieldset>
    <div id="Comments">
        <% Html.RenderPartial("Comments", Model.Comments); %>
        <% Html.RenderPartial("CommentForm", new IndyMosaic.Models.Blog.Comment() { EntryID = Model.BlogEntry.ID }); %>
    </div>
    <p>
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

